#!/bin/bash

G_CHIP_TYPE="$1"
SRC_DIR="$2"
DST_FILE="$3"

echo ">>>>>> ###### mksquashfs $SRC_DIR $DST_FILE"
if [[ "$G_CHIP_TYPE" == Ingenic* ]];then
    mksquashfs $SRC_DIR $DST_FILE -comp xz
elif [[ "$G_CHIP_TYPE" == AgtxHC* ]];then
    mksquashfs $SRC_DIR $DST_FILE -comp xz
elif [[ "$G_CHIP_TYPE" == TX* ]];then
    mksquashfs $SRC_DIR $DST_FILE -noappend -processors 7 -comp xz
else
    ./mksquashfs $SRC_DIR $DST_FILE -comp xz
fi

